<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        const arr = [100, 80, 90]
        const [max, min, avg] = arr
        console.log(max);

        let a = 1
        let b = 2;//要加分号
        [a, b] = [b, a]
        console.log(a, b);
    </script>
</body>

</html>